package sa4.routing

import scala.collection.mutable.HashMap
import javax.servlet.http._
import javax.servlet.ServletConfig

/*
 * This singleton contains all the routing objects defined by the user.
 */
object setRoutes {

  GET("/css/{filePath}.css", GETFunctions.getCss)
  GET("/javaScript/{filePath}.js", GETFunctions.getJs)
  GET("/lib/bootstrap/js/{filePath}.js", GETFunctions.getBootstrap)
  GET("/thewallreg", GETFunctions.getWallReg)
  GET("/getBricks", GETFunctions.getBricks)
  //GET("/img/{image}.png", GETFunctions.getImage)
  GET("/getUserData", GETFunctions.getUserData)
  
  
  POST("/theWall", POSTFunctions.getWallHomepage)
  //POST("/loginUser", ((params: HashMap[String, String], req: HttpServletRequest, res: HttpServletResponse) => println("ciao")) )
  POST("/registerUser", POSTFunctions.registerUser)
  POST("/postBrick", POSTFunctions.postBrick)
 


} 
